package com.zz.spring6.iocxml.life;

public class User {

    private String name;

    public User() {
        System.out.println("1 bean对象创建 调用无参数构造");
    }

    public void initMethod(){
        System.out.println("4  调用初始化的指定方法");
    }

    public void destoryMethod(){
        System.out.println("7  调用销毁的指定方法");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("2  给bean对象设置属性值");
        this.name = name;
    }
}
